#!/bin/sh

[ -e /opt ] || mkdir /opt
[ -e /volume1/opt ] || mkdir -p /volume1/opt
mount -o bind /volume1/opt /opt
[ -d /opt/etc/ipkg ] || mkdir -p /opt/etc/ipkg
[ -d /opt/var ] || mkdir -p /opt/var/lib
[ -d /opt/tmp ] || mkdir -p /opt/tmp
[ -d /opt/lib/ipkg/info ] || mkdir -p /opt/lib/ipkg/info
[ -d /usr/lib/ipkg/info ] || mkdir -p /usr/lib/ipkg/info
